POV-Ray : Newsgroups : povray.general : Nested loop problem (or maybe I'm just being stupid) : Re: Nested loop problem (or maybe I'm just being stupid) Server Time
10 Aug 2024 01:17:54 EDT (-0400)
  Re: Nested loop problem (or maybe I'm just being stupid)  
From: Richard Speir
Date: 23 Mar 2000 22:14:14
Message: <38DADE7C.CFB725A1@mindspring.com>
Bah!!  Cursed Netscape mail program!  Here's the code; hope it's clearer
now:

#declare a = 0;
#declare b = 0;
#declare layers = 3;
#declare sections = 12;

#while (a<layers+1)
    #while (b<sections+1)
        <insert macro here>
        #local b = b + 1;
    #end
#local a = a + 1;
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.